<template>
    <el-dialog :model-value="istoshow" :title="title" append-to-body :before-close="close" :width="width">
        <slot name="body"></slot>
       
        <template #footer>
           <slot name="footer"></slot>
        </template>
    </el-dialog>
</template>

<script setup>
let emit = defineEmits(['cansol'])
function close(){
    emit('cansol');
}

let props = defineProps({
    istoshow:{
        type:Boolean,
        default:false
    },
    title:{
        type:String,
        default:''
    },
    width:{
        type:String,
        default:'40%'
    }
})

</script>

<style lang="css" scoped>

</style>
